<template>
  <div>
    <index-cmpt :models="models"></index-cmpt>
  </div>
</template>

<script>
import IndexCmpt from '@/credit/views/city/bus/index/IndexCmpt'
import { mapGetters } from 'vuex'
export default {
  components: {
    IndexCmpt,
  },
  props: {},
  data() {
    return {}
  },
  computed: {
    ...mapGetters(['taskResCountFast', 'taskResCountFastPostloan']),
    models() {
      return [
        {
          title: '项目受理',
          subTitle: '待办',
          subCount: this.taskResCountFast.p || 0,
          url: '/credit/task/union/fast/approve',
          handlerUrl: '/credit/task/union/fast/approve_no',
        },
        {
          title: '项目立项',
          subTitle: '待办',
          subCount: this.taskResCountFast.p1 || 0,
          url: '/credit/task/union/fast/item',
          handlerUrl: '/credit/task/union/fast/item_no',
        },
        {
          title: '项目审批',
          subTitle: '待办',
          subCount: this.taskResCountFast.invest || 0,
          url: '/credit/task/union/fast/invest',
          handlerUrl: '/credit/task/union/fast/invest_no',
        },
        {
          title: '贷后管理',
          subTitle: '到期',
          subCount: this.taskResCountFastPostloan.p || 0,
          url: '/credit/task/union/fast/postloan',
          handlerUrl: '/credit/task/union/fast/postloan_no',
        },
      ]
    },
  },
  watch: {},
  created() {
    this.$store.dispatch('getTaskResCountFast')
    this.$store.dispatch('getTaskResCountFastPostloan')
  },
  mounted() {},
  methods: {},
}
</script>

<style lang="scss" scoped></style>
